load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "gen_library",
    srcs = ["main.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/util/timeutil/gen",
    visibility = ["//visibility:private"],
    deps = ["@com_github_cockroachdb_errors//:errors"],
)

go_binary(
    name = "gen",
    data = ["@go_sdk//:lib/time/zoneinfo.zip"],
    embed = [":gen_library"],
    visibility = ["//visibility:public"],
)
